#include <wx/wx.h>
#include <wx/statline.h>

class Staticline : public wxDialog
{
public:
    Staticline(const wxString &title);
};

Staticline::Staticline(const wxString &title) : wxDialog(NULL, wxID_ANY, title,
                                                         wxDefaultPosition, wxSize(360, 350))
{

    wxFont font(12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD);
    wxStaticText *heading = new wxStaticText(this, wxID_ANY, wxT("The Central Europe"),
                                             wxPoint(30, 15));
    heading->SetFont(font);

    wxStaticLine *sl1 = new wxStaticLine(this, wxID_ANY, wxPoint(25, 50),
                                         wxSize(300, 1));

    wxStaticText *st1 = new wxStaticText(this, wxID_ANY, wxT("Slovakia"),
                                         wxPoint(25, 80));
    wxStaticText *st2 = new wxStaticText(this, wxID_ANY, wxT("Hungary"),
                                         wxPoint(25, 100));
    wxStaticText *st3 = new wxStaticText(this, wxID_ANY, wxT("Poland"),
                                         wxPoint(25, 120));
    wxStaticText *st4 = new wxStaticText(this, wxID_ANY, wxT("Czech Republic"),
                                         wxPoint(25, 140));
    wxStaticText *st5 = new wxStaticText(this, wxID_ANY, wxT("Germany"),
                                         wxPoint(25, 160));
    wxStaticText *st6 = new wxStaticText(this, wxID_ANY, wxT("Slovenia"),
                                         wxPoint(25, 180));
    wxStaticText *st7 = new wxStaticText(this, wxID_ANY, wxT("Austria"),
                                         wxPoint(25, 200));
    wxStaticText *st8 = new wxStaticText(this, wxID_ANY, wxT("Switzerland"),
                                         wxPoint(25, 220));

    wxStaticText *st9 = new wxStaticText(this, wxID_ANY, wxT("5 379 000"),
                                         wxPoint(220, 80), wxSize(90, -1), wxALIGN_RIGHT);
    wxStaticText *st10 = new wxStaticText(this, wxID_ANY, wxT("10 084 000"),
                                          wxPoint(220, 100), wxSize(90, -1), wxALIGN_RIGHT);
    wxStaticText *st11 = new wxStaticText(this, wxID_ANY, wxT("38 635 000"),
                                          wxPoint(220, 120), wxSize(90, -1), wxALIGN_RIGHT);
    wxStaticText *st12 = new wxStaticText(this, wxID_ANY, wxT("10 240 000"),
                                          wxPoint(220, 140), wxSize(90, -1), wxALIGN_RIGHT);
    wxStaticText *st13 = new wxStaticText(this, wxID_ANY, wxT("82 443 000"),
                                          wxPoint(220, 160), wxSize(90, -1), wxALIGN_RIGHT);
    wxStaticText *st14 = new wxStaticText(this, wxID_ANY, wxT("2 001 000"),
                                          wxPoint(220, 180), wxSize(90, -1), wxALIGN_RIGHT);
    wxStaticText *st15 = new wxStaticText(this, wxID_ANY, wxT("8 032 000"),
                                          wxPoint(220, 200), wxSize(90, -1), wxALIGN_RIGHT);
    wxStaticText *st16 = new wxStaticText(this, wxID_ANY, wxT("7 288 000"),
                                          wxPoint(220, 220), wxSize(90, -1), wxALIGN_RIGHT);

    wxStaticLine *sl2 = new wxStaticLine(this, wxID_ANY, wxPoint(25, 260),
                                         wxSize(300, 1));

    wxStaticText *sum = new wxStaticText(this, wxID_ANY, wxT("164 102 000"),
                                         wxPoint(220, 280));
    wxFont sum_font = sum->GetFont();
    sum_font.SetWeight(wxFONTWEIGHT_BOLD);
    sum->SetFont(sum_font);

    this->Centre();
}

class MyApp : public wxApp
{
public:
    virtual bool OnInit();
};

bool MyApp::OnInit()
{
    Staticline *frame = new Staticline(wxT("wxStaticLine"));
    frame->ShowModal();
    frame->Destroy();
    return true;
}

wxIMPLEMENT_APP(MyApp);